# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ssl-hostname-resolver
pkgver=1
pkgrel=10
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
pkgdesc='CN (Common Name) grabber on X.509 Certificates over HTTPS.'
arch=('any')
url='http://packetstormsecurity.com/files/120634/Common-Name-Grabber-Script.html'
license=('GPL3')
depends=('perl' 'perl-net-cidr-lite' 'perl-netaddr-ip' 'perl-crypt-ssleay'
         'perl-bytes-random-secure')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/utilities/ssl_hostname_resolver.pl.txt")
sha512sums=('10537628a5d8066f357768be2f54f15b6c4d0f40a2ed4483b9946b333e98d57d06e716ecc61635d8ce27efb215b668b5799f071a7eaeb1de797622d742796398')

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

